var app = new Vue({
	el: '#app',
	extends: isLogin,
	components: {
//		headers: header,
		navs: nav,
		footers: footer,
		login: login,
	},
	data: {
		bgImg: 'img/PCindex/top5.jpg',
		navState: '行业动态',
		article: '', //最新动态
	},
	methods: {
		//header组件的搜索方法
		searchHeader: function(searchCtx) {
			xq.toast1(searchCtx)
		},
		//获取最新动态
		getData: function() {
			var _this = this;
			var method = 'News/GetNewsDetail';
			var device = xq.device;
			var id = xq.getQueryString('id');
			var param = {
				id: id,
				Device: device,
				ColumnID: '',
				ListCount: '1', //获取数量
				PageIndex: '',
				IsShowPhoto: false
			};
			xq.getUrl(method, param, function(res) {
				if(res.data) {
					_this.article = res.data;
				}
			})
		},
	},
	mounted: function() {
		this.getData();
	},
	updated: function() {

	}
})